package ethans.springCloud.serviceImpl;


import feign.ethan.springCloud.pojo.Dept;
import ethans.springCloud.dao.DeptDao;
import ethans.springCloud.service.DeptService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Ethan
 */
@Service
@Slf4j
public class DeptServiceImpl implements DeptService {

    @Resource
    private DeptDao dao;

    @Override
    public Boolean insert(Dept dept) {
        return dao.insert(dept);
    }

    @Override
    public Dept selectOne(Integer id) {
        return dao.selectOne(id);
    }

    @Override
    public List<Dept> listAll() {
        return dao.listAll();
    }

    @Override
    public Integer delete(Integer id) {
        return dao.delete(id);
    }

}
